﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace WebAPI.Models
{
    /// <summary>
    /// 评论表
    /// </summary>
    public class Comment
    {
        [Key]
        public int CommentID { set; get; }
        public int GoodsID { set; get; }
        public string CommentUserName { set; get; }
        public DateTime CommentTime { get; set; }
        public int CommentStarLevel { get; set; }
        public string CommentContent { set; get; }

        #region 扩展字段
        [ReadOnly(true)]
        public string DisplayTime { get; set; }
        #endregion
    }
}